<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="区域调拨计划" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm"
                        ng-click="addApply()"
                        ng-disabled="!btnPermission.stockAllocationPlanAdd&&!btnPermission.stockAllocationPlanSubmit"
                        title="{{!btnPermission.stockAllocationPlanAdd&&!btnPermission.stockAllocationPlanSubmit?'无权限执行此操作':''}}">新增</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.stockAllocationPlanExport">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download
                                    download-url="exportParam.exportUrl"
                                    download-param="exportParam.sectionParam"
                                    download-key="idList">
                                    <i class="yb-icon ico-export-o"></i> 导出
                                </li>
                                <li yb-download download-url="exportParam.exportUrl">
                                    <i class="yb-icon ico-export-o"></i> 导出全部
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="调拨计划单号"
                            ng-model="condition.allotPlanOrder">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">调拨计划单号：</label>
                        <input type="text" ng-model="condition.allotPlanOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">制单人：</label>
                        <input type="text" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label">制单时间：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDatePicker(0)"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="datePickerFlag[0]" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDatePicker(1)"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="datePickerFlag[1]" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">CRM单号：</label>
                        <input type="text" ng-model="condition.crmOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">调出仓库：</label>
                        <input type="text" ng-model="condition.outWarehouse" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">调入仓库：</label>
                        <input type="text" ng-model="condition.inWarehouse" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">单据状态：</label>
                        <select ng-model="condition.planStatus" class="form-control"
                            ng-options="item.code as item.name for item in statusList">
                            <option value="">请选择</option>
                        </select>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allCheckedBill"
                                            yb-click="selectAll(dataList, 'Bill')"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.billFixedWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="editApply(item)"
                                                ng-disabled="item.planStatus!==0||(!btnPermission.stockAllocationPlanAdd&&!btnPermission.stockAllocationPlanSubmit)"
                                                title="{{!btnPermission.stockAllocationPlanAdd&&!btnPermission.stockAllocationPlanSubmit?'无权限执行此操作':''}}">编辑</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="adjustApply(item)"
                                                ng-disabled="!(item.planStatus==1||item.planStatus==2)">调整</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="delApply(item.id)"
                                                ng-disabled="item.planStatus!==0 || !btnPermission.stockAllocationPlanDel"
                                                title="{{!btnPermission.stockAllocationPlanDel?'无权限执行此操作':''}}">删除</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="finishByIds(item.id)"
                                                ng-disabled="item.planStatus==3||item.planStatus==4 || !btnPermission.stockAllocationPlanFinish"
                                                title="{{!btnPermission.stockAllocationPlanFinish?'无权限执行此操作':''}}">结单</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </span>
                                        <a class="btn-operate m-r-xs"
                                            ng-click="tdClick(item, itemCol.clickFn,'td-scroll')"
                                            ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                    yb-click="selectAll(dataList, 'Bill')"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调拨计划单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.allotPlanOrder || '-'}}">
                        {{orderObj.allotPlanOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.createName || '-'}}">
                        {{orderObj.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.dept || '-'}}">
                        {{orderObj.dept || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{orderObj.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{orderObj.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出仓库：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.outWarehouse || '-'}}">
                        {{orderObj.outWarehouse || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入仓库：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.inWarehouse || '-'}}">
                        {{orderObj.inWarehouse || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">移动类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.moveType || '-'}}">
                        {{orderObj.moveType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiveUser || '-'}}">
                        {{orderObj.receiveUser || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="收货人联系方式">收货人联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiveTel || '-'}}">
                        {{orderObj.receiveTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货地址：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiveAddress || '-'}}">
                        {{orderObj.receiveAddress || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.planStatus || '-'}}">
                        {{orderObj.planStatus || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">CRM单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.crmOrder || '-'}}">
                        {{orderObj.crmOrder || "-"}}
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:140px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielDetailConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="60" class="border-l-none">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in materielDetailConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielDetailConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailVOList.length > 0">
                        <table class="table-fixed border-none" width="{{materielDetailConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.detailVOList track by $index">
                                    <td width="60" class="font-0">
                                        <button class="btn btn-operate m-r-xs" 
                                            ng-disabled="item.planStatus!=1&&item.planStatus!=2 || !btnPermission.stockAllocationPlanFinish"
                                            title="{{!btnPermission.stockAllocationPlanFinish?'无权限执行此操作':''}}"
                                            ng-click="finishByDetailIds(item.id)">结单</button>
                                    </td>
                                    <td ng-repeat="itemCol in materielDetailConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" class="spill-dots">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailVOList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default" ng-click="cancel()">返回</button>
            </div>
        </div>
        <div tab heading="新增" active="activeFlag[2]" ng-if="activeFlag[2]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单部门：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.dept||'-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单人：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.createName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单日期：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.createDate|YbDate}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调度员：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="dispatcherName" class="form-control light-bg" placeholder="请选择"
                            ng-model="orderObj.dispatcherName" ng-click="searchDispatch()" required yb-focus readonly>

                        <div class="msg-block"
                            ng-if="orderForm.dispatcherName.$dirty || (orderForm.dispatcherName.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.dispatcherName.$error.required && !orderForm.dispatcherName.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调出仓库：</label>
                    <div class="col-xs-8 wrapper-none">

                        <div yb-form-clear ng-model="orderObj.outWarehouse" select-obj="selectWarehouse('out')"
                            clear-form="clearWarehouse('out')" tips-name="调出仓库" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.outWarehouse && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择调出仓库
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调入仓库：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.inWarehouse" select-obj="selectWarehouse('in')"
                            clear-form="clearWarehouse('in')" tips-name="调入仓库" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.inWarehouse && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择调入仓库
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>移动类型：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="moveType" class="form-control" ng-model="orderObj.moveType"
                            ng-disabled="tabFlag.type == 2" required yb-focus maxlength="10">
                        <div class="msg-block"
                            ng-if="orderForm.moveType.$dirty || (orderForm.moveType.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.moveType.$error.required && !orderForm.moveType.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">收货人：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control" ng-model="orderObj.receiveUser" maxlength="20">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100 spill-dots" title="收货人联系方式">收货人联系方式：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiveTel" yb-contact yb-focus class="form-control" ng-model="orderObj.receiveTel"
                            maxlength="11">
                        <div class="msg-block" ng-show="orderForm.receiveTel.$dirty || (orderForm.receiveTel.$invalid && submitted)">
                            <div class="error-msg" ng-show="orderForm.receiveTel.$error.contactInfo && !orderForm.receiveTel.focused">
                                <div class="msg-triangle"></div>
                                联系方式格式错误
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">收货地址：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control" maxlength="50" ng-model="orderObj.receiveAddress">
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)">选择零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importMateriel()">导入零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()">批量删除</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" is-default-warehouse="true"
                selected-list="orderObj.detailVOList" warehouse-code="orderObj.outWarehouse"></div>
            <div class="main-area d-b-60" style="top:215px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielAddConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.detailVOList, 'Material')"></div>
                                    </th>
                                    <th width="60" class="text-center">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in materielAddConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielAddConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailVOList.length > 0">
                        <table class="table-fixed border-none" width="{{materielAddConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.detailVOList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.detailVOList, 'Material')"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index)">删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in materielAddConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.needInput">
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                            <span ng-if="!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </div>
                                        <div class="td-edit pos-r" ng-if="itemCol.needInput">
                                            <input ng-if="!itemCol.needRequired" type="text" class="form-control"
                                                ng-model="item[itemCol.dataField]" maxlength="20">
                                            <input ng-if="itemCol.needRequired" type="text" class="form-control"
                                                ng-model="item[itemCol.dataField]" ng-focus="showQtyTip(item)"
                                                ng-blur="hideQtyTip(item)" ng-change="checkQty(item)" yb-number-input
                                                max="99999.999" maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': item.qtyErr&&itemCol.needRequired, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3)&&itemCol.needRequired,
                                                    'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2)&&itemCol.needRequired, 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)&&itemCol.needRequired}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr&&itemCol.needRequired">
                                                <i class="triangle"></i>
                                                <div class="msg">申请数量不能为空和0</div>
                                            </div>
                                            <div class="pos-a tool-tips"
                                                ng-if="item.showStockErr&&itemCol.needRequired">
                                                <i class="triangle"></i>
                                                <div class="msg">{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailVOList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default"
                    ng-disabled="!btnPermission.stockAllocationPlanAdd"
                    title="{{!btnPermission.stockAllocationPlanAdd?'无权限执行此操作':''}}"
                    ng-click="saveData('add', orderForm.$valid)">保存</button>
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-disabled="!btnPermission.stockAllocationPlanSubmit"
                    title="{{!btnPermission.stockAllocationPlanSubmit?'无权限执行此操作':''}}"
                    ng-click="saveData('submit', orderForm.$valid)">提交</button>
            </div>
        </div>
        <div tab heading="编辑" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调拨计划单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.allotPlanOrder || '-'}}">
                        {{orderObj.allotPlanOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.createName || '-'}}">
                        {{orderObj.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.dept || '-'}}">
                        {{orderObj.dept || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{orderObj.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{orderObj.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调度员：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.dispatcherName || '-'}}">
                        {{orderObj.dispatcherName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出仓库：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.outWarehouse || '-'}}">
                        {{orderObj.outWarehouse || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入仓库：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.inWarehouse || '-'}}">
                        {{orderObj.inWarehouse || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">移动类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.moveType || '-'}}">
                        {{orderObj.moveType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiveUser || '-'}}">
                        {{orderObj.receiveUser || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="收货人联系方式">收货人联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiveTel || '-'}}">
                        {{orderObj.receiveTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货地址：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiveAddress || '-'}}">
                        {{orderObj.receiveAddress || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">CRM单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.crmOrder || '-'}}">
                        {{orderObj.crmOrder || "-"}}
                    </div>
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)">选择零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importMateriel()">导入零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()">批量删除</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" selected-list="orderObj.detailVOList"
                is-default-warehouse="true" warehouse-code="orderObj.outWarehouse">
            </div>
            <div class="main-area d-b-60" style="top:165px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.detailVOList, 'Material')"></div>
                                    </th>
                                    <th width="60" class="text-center">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielTableConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailVOList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.detailVOList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.detailVOList, 'Material')"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index)">删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.needInput">
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                            <span ng-if="!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </div>
                                        <div class="td-edit pos-r" ng-if="itemCol.needInput">
                                            <input ng-if="!itemCol.needRequired" type="text" class="form-control"
                                                ng-model="item[itemCol.dataField]" maxlength="20">
                                            <input ng-if="itemCol.needRequired" type="text" class="form-control"
                                                ng-model="item[itemCol.dataField]" ng-focus="showQtyTip(item)"
                                                ng-blur="hideQtyTip(item)" ng-change="checkQty(item)" yb-number-input
                                                max="99999.999" maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': item.qtyErr&&itemCol.needRequired, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3)&&itemCol.needRequired,
                                                    'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2)&&itemCol.needRequired, 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)&&itemCol.needRequired}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr&&itemCol.needRequired">
                                                <i class="triangle"></i>
                                                <div class="msg">申请数量不能为空和0</div>
                                            </div>
                                            <div class="pos-a tool-tips"
                                                ng-if="item.showStockErr&&itemCol.needRequired">
                                                <i class="triangle"></i>
                                                <div class="msg">{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailVOList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default"
                    ng-disabled="!btnPermission.stockAllocationPlanAdd"
                    title="{{!btnPermission.stockAllocationPlanAdd?'无权限执行此操作':''}}"
                    ng-click="saveData('add', true)">保存</button>
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-disabled="!btnPermission.stockAllocationPlanSubmit"
                    title="{{!btnPermission.stockAllocationPlanSubmit?'无权限执行此操作':''}}"
                    ng-click="saveData('submit', true)">提交</button>
            </div>
        </div>
        <div tab heading="参考创建区域调拨计划" active="activeFlag[4]" ng-if="activeFlag[4]">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="searchForCanKao()"
                            title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="调拨计划单号"
                            ng-model="condition.allotPlanOrder">
                        <span class="input-group-addon cursor-pointer" ng-click="searchForCanKao(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="searchForCanKao(1)"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">调拨计划单号：</label>
                        <input type="text" ng-model="condition.allotPlanOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">制单人：</label>
                        <input type="text" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label">制单时间：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDatePicker(0)"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="datePickerFlag[0]" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDatePicker(1)"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="datePickerFlag[1]" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">调出仓库：</label>
                        <input type="text" ng-model="condition.outWarehouse" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">调入仓库：</label>
                        <input type="text" ng-model="condition.inWarehouse" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">单据状态：</label>
                        <select ng-model="condition.planStatus" class="form-control"
                            ng-options="item.code as item.name for item in statusListForCankao">
                            <option value="">请选择</option>
                        </select>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.billFixedWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="makeAllotOrder(item)">制定区域调拨单</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span>
                                            {{item[itemCol.dataField]}}
                                        </span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                    yb-click="selectAll(dataList, 'Bill')"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="searchForCanKao()"></div>
            </div>
        </div>
        <div tab heading="调整" active="activeFlag[5]" ng-if="activeFlag[5]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调拨计划单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.allotPlanOrder || '-'}}">
                        {{orderObj.allotPlanOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.createName || '-'}}">
                        {{orderObj.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.dept || '-'}}">
                        {{orderObj.dept || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{orderObj.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{orderObj.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调度员：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.dispatcherName || '-'}}">
                        {{orderObj.dispatcherName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出仓库：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.outWarehouse || '-'}}">
                        {{orderObj.outWarehouse || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调入仓库：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.inWarehouse || '-'}}">
                        {{orderObj.inWarehouse || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">移动类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.moveType || '-'}}">
                        {{orderObj.moveType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiveUser || '-'}}">
                        {{orderObj.receiveUser || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="收货人联系方式">收货人联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiveTel || '-'}}">
                        {{orderObj.receiveTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货地址：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.receiveAddress || '-'}}">
                        {{orderObj.receiveAddress || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">CRM单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.crmOrder || '-'}}">
                        {{orderObj.crmOrder || "-"}}
                    </div>
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()">批量删除</button>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:165px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(orderObj.detailVOList, 'Material')"></div>
                                    </th>
                                    <th width="60" class="text-center">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="materielTableConfig.targetWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailVOList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.detailVOList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, orderObj.detailVOList, 'Material')"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index)">删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.needInput">
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                            <span ng-if="!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </div>
                                        <div class="td-edit pos-r" ng-if="itemCol.needInput">
                                            <span ng-if="!itemCol.needRequired">
                                                {{item[itemCol.dataField]}}
                                            </span>

                                            <div ng-if="itemCol.needRequired">
                                                <input type="text" class="form-control"
                                                    ng-model="item[itemCol.dataField]" ng-focus="showQtyTip(item)"
                                                    ng-blur="hideQtyTip(item)" ng-change="checkQty(item)" yb-number-input
                                                    max="99999.999" maxlength="9" disable-decimal="false" decimal-places="3"
                                                    ng-class="{'error': item.qtyErr}">
                                                <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                    <i class="triangle"></i>
                                                    <div class="msg">申请数量不能为空和0</div>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailVOList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default m-r-sm" ng-click="saveData('adjust', true)">调整</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="changeTab(0)">取消</button>
            </div>
        </div>
    </div>
</div>
